package com.hqhy.like.stock.service;

import com.hqhy.like.common.pojo.vo.PageData;
import com.hqhy.like.stock.pojo.param.StockInAddParam;
import com.hqhy.like.stock.pojo.param.StockSearchParam;
import com.hqhy.like.stock.pojo.param.StockInUpdateParam;
import com.hqhy.like.stock.pojo.vo.StockInListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IStockInService {
    int insert(StockInAddParam stockInAddParam);

    int deleteById(Long id);

    int updateById(StockInUpdateParam stockInUpdateParam);

    PageData<StockInListItemVO> list(Integer pageNum, Integer size);

    PageData<StockInListItemVO> listForSearch(StockSearchParam stockInSearchParam);

    List<StockInListItemVO> listForExport(List<Long> ids);

    StockInListItemVO getStockInById(Long id);
}
